
# Copyright 2009-2010 Joshua Roesslein
# See LICENSE for details.


from utils import convert_to_utf8_str


class APIError(Exception):
    """API exception"""

    def __init__(self, reason):
        self.reason = convert_to_utf8_str(reason)
	print self.reason

    def __str__(self):
        return self.reason

